<template>
  <div class="anchor">
    <div class="back"></div>
    <div class="grid-content_type">
      <span>{{ title }}</span
      ><span class="tips">{{ tips }}</span>
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'anchor',
  props: {
    title: {
      type: String,
      default: ''
    },
    tips: {
      type: String,
      default: ''
    }
  },
  data() {
    return {}
  }
}
</script>
<style scoped>
.anchor {
  display: flex;
}
.grid-content_type {
  font-size: 16px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 16px;
  font-weight: bold;
  font-size: 14px;
}
.back {
  width: 2px;
  height: 16px;
  background-color: var(--el-menu-active-color);
  margin: 0 4px 0 0;
}
.tips {
  margin-left: 10px;
  color: #aeaeae;
  font-size: 14px;
}
</style>
